# Maintainer: Stacy Harper <contact@stacyharper.net>
pkgname=wl-mirror
pkgver=0.11.2
pkgrel=0
pkgdesc="A simple Wayland output mirror client"
url="https://github.com/Ferdi265/wl-mirror"
license="GPL-3.0-or-later"
arch="all"
makedepends="
	cmake
	mesa-dev
	samurai
	wayland-dev
	wayland-protocols
	"
source="https://github.com/Ferdi265/wl-mirror/releases/download/v$pkgver/wl-mirror-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DINSTALL_EXAMPLE_SCRIPTS=OFF \
		-DWLR_PROTOCOL_DIR="$builddir/proto/wlr-protocols"
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
8d71b5516ec2f5e2a8947526e412c3c2ebcd7e6ddd7401d77d1b1cdd0316aae2bb3af9473bfef1bab54dd16d68f646d119baf3f0d0a505e29524f5049e23e592  wl-mirror-0.11.2.tar.gz
"
